﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>@ConfigHelper.GetSiteTitle()</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/js")
    @Scripts.Render("~/Scripts/admin/DateInput/WdatePicker.js")
    @Styles.Render("~/Content/autocomplete/jquery-ui.css")
    <link href="~/Content/Topic/css/main.css" rel="stylesheet" />
    @using CNKI.TPI.Web.Base;
    <style>
        /*重写提示框样式*/
        .ui-dialog .ui-dialog-titlebar {
            padding: 3px;
        }

        .ui-dialog .ui-dialog-buttonpane {
            margin: 0px;
            padding: 0px;
        }

        .ui-dialog-title {
            padding-left: 5px;
        }
        /*改变标题颜色*/
        .ui-widget-header {
            background-color: #107bce;
            border: 1px solid #107bce;
            background-image: none;
        }

        .ui-front {
            z-index: 999999999;
        }

        .wrap {
            min-height: 45px;
            padding-bottom: 0px;
        }

        #body {
            min-height: 814px;
        }
    </style>
    <script type="text/javascript">

        function addCookie(objName, objValue, objHours) {//添加cookie 
            var str = objName + "=" + escape(objValue);
            if (objHours > 0) {//为0时不设定过期时间，浏览器关闭时cookie自动消失 
                var date = new Date();
                var ms = objHours * 3600 * 1000;
                date.setTime(date.getTime() + ms);
                str += "; expires=" + date.toGMTString();
            }
            document.cookie = str + ";path=/";
        }

        function getCookie(objName) {//获取指定名称的cookie的值 
            var arrStr = document.cookie.split("; ");
            for (var i = 0; i < arrStr.length; i++) {
                var temp = arrStr[i].split("=");
                if (temp[0] == objName)
                    return unescape(temp[1]);
            }
        }

        $(function () {

            //点击时session标志赋值
            $(".nav-i a").click(function () {
                var url = $(this).attr("href");
                addCookie("Menu", url, 0);
            })

            //页面加载时判断
            //var sessionStr = "/";
            //sessionStr = getCookie("Menu");
            //if (sessionStr == undefined || sessionStr == "/") {
            //    $("#curhome").addClass("nav-a1 nowOnNav");
            //}
            //else {
            //    $(".nav-i a").each(function (i) {
            //        if (sessionStr == $(this).attr("href"))
            //            $(this).addClass("nav-a1 nowOnNav");
            //        else
            //            $(this).removeClass("nav-a1 nowOnNav");
            //    });
            //}
        })

        //解决浏览器缓存
        function timestamp(url) {
            var getTimestamp = new Date().getTime();
            if (url.indexOf("?") > -1) {
                url = url + "&t=" + getTimestamp
            } else {
                url = url + "?t=" + getTimestamp
            }
            return url;
        }
    </script>
    <style>
        /*重写提示框样式*/
        .ui-dialog .ui-dialog-titlebar {
            padding: 3px;
        }

        .ui-dialog .ui-dialog-buttonpane {
            margin: 0px;
            padding: 0px;
        }

        .ui-dialog-title {
            padding-left: 5px;
        }
        /*改变标题颜色*/
        .ui-widget-header {
            background-color: #107bce;
            border: 1px solid #107bce;
            background-image: none;
        }

        .ui-front {
            z-index: 999999999;
        }
    </style>
</head>
<body style="position:relative">
    <!--页面头部==开始-->
    <div class="top">
        <div class="wrap clearfix">
            <p class="toptime fl">
                <span>@ViewBag.TitleTopic</span>
            </p>
            <p class="toptime fr">
                <span>@ViewBag.DateStr</span>
            </p>
        </div>
    </div>

@using CNKI.TPI.Web.Admin.IBLL
@using CNKI.TPI.Web.Admin.Model

    <div id="body">
        @RenderBody()
    </div>
    <!--尾部==开始-->
    <div class="footer cw tc">@ViewBag.CopyRight</div>
    <input type="hidden" id="smartaddress" value="@Html.Raw(Url.Action("index", "SmartWord"))"/>
    <input type="hidden" id="smartwordtag" value="@ConfigHelper.GetSmartTag()"/>
    <!--透明背景-->
    <div class="talkDivBg" style="display: none; z-index: 999"></div>

    @*消息提示框*@
    <div id="dialog-message" title="消息提示">
        <p></p>
    </div>
    @*操作提示框*@
    <div id="dialog-confirm" title="操作提示">
        <p></p>
    </div>
</body>
</html>
